#ifndef __CAR_CONTROL_H
#define __CAR_CONTROL_H

#include "stm32f1xx_hal.h"
#include "Emm_v5.h"

typedef enum {
    speed,
    pos,
} mode;

void car_ahead(uint8_t mode , int vel , int pos);
void car_back(uint8_t mode , int vel , int pos);
void car_moveleft(uint8_t mode , int vel , int pos);
void car_moveright(uint8_t mode , int vel , int pos);
void car_stop(void);
void car_turn(int leftfront,int rightfront,int leftrear,int rightrear,uint8_t mode,int pos);

#endif
